<?php
	$start = microtime(true);
	require_once('./framework/config/config.main.php');
	$uiobjects = getFrameworkObject('widgets');
	$template = getFrameworkObject('template', 'taskman/html/header.html');
	// $pageContent = getFrameworkObject('template', 'taskman/html/welcome.html');
	$data = array(
		'Links' => $uiobjects->getLinks(),
		'RootURL' => ROOT_WEB,
		'TemplateDirectory' => ROOT_WEB.'templates/taskman',
		'PlatformTitle' => 'TaskMan',
		'CopyrightName' => 'AZPHPGuru.com',
		'CopyrightYear' => '2006-2010',
		'Method' => isset($_REQUEST['method']) ? $_REQUEST['method'] : 'home',
		'LogoHTML' => 'TaskMan',
		'SearchHTML' => '',
		'UserHTML' => '',
		// 'PageHTML' => $pageContent->Buffer,
	);
	
	$parser = getFrameworkObject('templateParser', $template, $data);
	$result = $parser->Buffer;
	$end = microtime(true);
	echo str_replace('All rights reserved', 'All rights reserved; Execution: '.round(($end-$start),4), $result);
?>